package com.google.code.garbagecan.jbossasstudy.singleton;

import javax.ejb.Singleton;
import javax.inject.Named;

@Singleton
@Named
public class SingletonCounter {

	private int a = 0;
	private int b = 0;

	public void incrementA() {
		a++;
	}

	public void incrementB() {
		b++;
	}

	public int getA() {
		return a;
	}

	public int getB() {
		return b;
	}
}